<include file="Public:head" />
<style>
    tr td{
        text-align: center;
    }
</style>
<body class="overflow-hidden">
<div class="wrapper preload">
    <include file="Public:header" />
    <include file="Public:left" />
    <script>
        $(function () {

            $("#btnPrompt").click(function () {
                SimplePop.prompt("",{
                    type: "confirm",
                    cancel: function(){
                        alert("确定关闭？");
                    },
                    confirm: function(msg){
                        alert(msg);
                    }
                });
            });


        });
    </script>
    <div class="main-container">
        <div class="padding-md">
            <div class="row">
                <div class="col-sm-12">
                    <div class="page-title">
                        用户组管理
                    </div>
                </div>
            </div>
            <div class="col-sm-12 row chach">
                <button type="button" class="action-button" onclick="edit_group()" data-toggle="modal"  data-target="#myModal2">创建用户组</button>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="smart-widget widget-green">
                        <div class="smart-widget-header row ">
                            <span class="smart-widget-option">
                                <span class="refresh-icon-animated">
                                    <i class="fa fa-spinner fa-spin" style="color:#fff"></i>
                                </span>
                                <a href="#" class="widget-toggle-hidden-option">
                                </a>
                                <a href="#" class="widget-collapse-option" data-toggle="collapse">
                                </a>
                                <a href="#" class="widget-refresh-option">
                                </a>
                            </span>
                        </div>
                        <div class="smart-widget-inner table-responsive">
                            <div class="smart-widget-hidden-section">
                                <ul class="widget-color-list clearfix">
                                    <li style="background-color:#20232b;" data-color="widget-dark"></li>
                                    <li style="background-color:#4c5f70;" data-color="widget-dark-blue"></li>
                                    <li style="background-color:#23b7e5;" data-color="widget-blue"></li>
                                    <li style="background-color:#1fb5ac;" data-color="widget-green"></li>
                                    <li style="background-color:#edbc6c;" data-color="widget-yellow"></li>
                                    <li style="background-color:#fbc852;" data-color="widget-orange"></li>
                                    <li style="background-color:#e36159;" data-color="widget-red"></li>
                                    <li style="background-color:#7266ba;" data-color="widget-purple"></li>
                                    <li style="background-color:#f5f5f5;" data-color="widget-light-grey"></li>
                                    <li style="background-color:#fff;" data-color="reset"></li>
                                </ul>
                            </div>
                            <table class="table table-striped no-margin">
                                <thead>
                                <tr>
                                    <th class="text-center">用户组名称</th>
                                    <th class="text-center">成员</th>
                                    <th class="text-center">功能权限</th>
                                    <th class="text-center">修改</th>
                                    <th class="text-center">删除</th>
                                </tr>
                                </thead>
                                <tbody>
                                    <volist name="list" id="vo">
                                        <tr>
                                            <td align="center">{$vo.title}</td>
                                            <td align="center"><a  href="{:U('Unit/user_list',array('roleId'=>$vo['id']))}"><img src="__IMG__/icon_user.gif" border="0" style=""></a></td>
                                            <!--<td align="center"><a><img src="__IMG__/icon_manage.gif" border="0"></a></td>-->
                                            <td align="center"><a href="{:U('access?group_name='.$vo['title'].'&group_id='.$vo['id'])}"><img src="__IMG__/button_properties.png" border="0"></a></td>
                                            <td align="center"><a href="#" data-toggle="modal" data-target="#myModal2" onclick="edit_group('{$vo.id}','{$vo.title}','{$vo.description}','{$vo.stu_group}')"><img src="__IMG__/edit.gif" border="0"></a></td>
                                            <td align="center">
                                                <a href="{:U('user_group_del',array('id'=>$vo['id']))}"  class="ajax-get confirm" ><img src="__IMG__/del_icon2.gif" border="0"></a>
                                            </td>
                                        </tr>
                                    </volist>
                                </tbody>
                            </table>
                            <div class="choose-page row">
                                {$_page}
                            </div>
                        </div><!-- ./smart-widget-inner -->
                    </div><!-- ./smart-widget -->
                </div><!-- ./col -->
            </div><!-- ./row -->
        </div><!-- ./padding-md -->
    </div><!-- /main-container -->
    <include file="Public:foot" />
</div><!-- /wrapper -->

<a href="#" class="scroll-to-top hidden-print"><i class="fa fa-chevron-up fa-lg"></i></a>
</body>
</html>

<block name="script">
    <script>
        $(function () {
            highlight_nav2('{:U('Unit/user_group')}');
        })

    </script>
</block>

<!--弹出层-->
<include file="Unit:user_group_add" />

